﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AddEdit.ascx.cs" Inherits="Admin_News_AddEdit" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="GroupDropDownList" Namespace="GroupDropDownList" TagPrefix="cc1" %>

<asp:HiddenField runat="server" ID="hidLang" Value="vi-VN" />
<asp:HiddenField runat="server" ID = "hidNewsId" />
<asp:HiddenField runat="server" ID = "hidNewsInfo" />

<%--<script type="text/javascript">
    $(function(){
        $( "#tabs" ).tabs();
    });
</script>--%>
<%--<h2>
    Quản lý tin tức
</h2>--%>
<%--<div id="tabs">--%>
    <%--<ul>
        <li><a href="#vi-vn">Ngôn ngữ chính</a></li>
        <li><a href="#en-us">Tiếng anh</a></li>
    </ul>--%>
   <%-- <div id="vi-vn">--%>
   
   <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="CustomValidator" Display="None"></asp:CustomValidator>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="error" />
        <table width="100%">
            <tr>
                <td width="120px" class="req">
                    Thư mục gốc
                </td>
                <td>
                    <cc1:GroupDropDownList ID="ddlVCategory" runat="server" Width="299px" AppendDataBoundItems="true" ></cc1:GroupDropDownList>
                    
                </td>
            </tr>
            <tr>
                <td width="120px" class="req">
                    Tên tin tức
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="296px"></asp:TextBox>
                 <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Nhập tên tin tức"
                        ControlToValidate="txtTitle" Display="Dynamic">*</asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr valign="top">
                <td>
                    Hình ảnh
                </td>
                <td>
                    <ul class="upload">
                        <li>
                            <asp:FileUpload ID="filePhoto" runat="server" /></li>
                        <li>
                            <asp:Image ID="imgPhoto" runat="server" Height="80px" Width="80px" Visible="false" /></li>
                    </ul>
                </td>
            </tr>
            <tr valign="top">
                <td>
                    Tóm tắt
                </td>
                <td>
                    <asp:TextBox ID="txtInfor" runat="server" TextMode="MultiLine" Width="100%" Height="90px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Nội dung
                </td>
                <td>
                    <FCKeditorV2:FCKeditor ID="txtContent" runat="server" ToolbarSet="SimpleBar" Width="100%"
                        Height="400px" BasePath="~/fckeditor/">
                    </FCKeditorV2:FCKeditor>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnAddNews" runat="server" Text="Thêm mới" 
                        onclick="btnAddNews_Click" />
                    <asp:Button ID="btnBack" runat="server" Text="Trở về" onclick="btnBack_Click"/>
                </td>
            </tr>
        </table>
    <%--</div>--%>
<%--    <div id="en-us">
    </div>
</div>--%>